﻿using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;

namespace LightSwitchApplication.Reports
{
    public partial class SingleStudentAllSchoolReportsSR : DevExpress.XtraReports.UI.LightSwitchReport
    {
        public SingleStudentAllSchoolReportsSR()
        {
            InitializeComponent();
        }

        private void xrLabel30_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            if (this.xrLabel30.Text.Length > 0)
            {
                string year1 = this.xrLabel30.Text.Replace("20", "");
                string year2 = (Int16.Parse(year1) + 1).ToString("00");
                this.xrLabel30.Text = year1 + "/" + year2;
            }
        }

        private void xrLabel31_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            this.xrLabel31.Text = this.xrLabel31.Text.Replace(" Dönem", "D");
        }

        private void xrLabel32_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            this.xrLabel32.Text = this.xrLabel32.Text.Replace("Üniversite ", "Ü");
            this.xrLabel32.Text = this.xrLabel32.Text.Replace("Sınıf", "S");
            this.xrLabel32.Text = this.xrLabel32.Text.Replace(" ", "");
        }

        private void SingleStudentAllSchoolReportsSR_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            this.FilterString += " And [Year] >= " + ((DateTime)fromDate1.Value).Year;
        }
    }
}
